package ooday04;

public class Fish extends Animal implements Swim {
    Fish() {

    }

    public void swim() {
        System.out.println(name + "小鱼在游泳" + age + "年龄" + color + "颜色");

    }
    Fish(String name, int age, String color) {
        super(name,age,color);
    }

    void eat() {
        System.out.println(name+"小鱼在吃东西"+
                age+"年龄"+color+"颜色");
    }
}
